package main

import (
	"fmt"
)

func main() {
	var str, str1 string
	fmt.Println("请输入字符串：")
	fmt.Scan(&str)
	num := 0
	Num := 0
	number := 0
	for _, i := range str {
		str1 = string(i) + str1
		if i >= 97 && i <= 122 {
			num++
		} else if i >= 65 && i <= 90 {
			Num++
		} else if i >= 48 && i <= 57 {
			number++
		} else {
			continue
		}
	}
	fmt.Printf("小写字母个数为%d\n大写字母个数为%d\n数字个数为%d\n", num, Num, number)
	fmt.Printf("字符串倒过来为%s", string(str1))
}
